//
//  MeatCartModel.h
//  PigMarket
//
//  Created by 张敬 on 2019/8/16.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PigTypeListModel.h"


NS_ASSUME_NONNULL_BEGIN

@class MeatCartItem, MeatCartListModel ,MeatCartData;

/*
 "totalCount":2,
 "pageSize":10,
 "totalPage":1,
 "currPage":1,
 "list":[
 Object{...},
 Object{...}
 */
@interface MeatCartModel : NSObject

@property (nonatomic, strong) MeatCartData *page;

@end


@interface MeatCartData : NSObject

@property (nonatomic, strong) NSNumber *totalCount;
@property (nonatomic, strong) NSNumber *pageSize;
@property (nonatomic, strong) NSNumber *totalPage;
@property (nonatomic, strong) NSNumber *currPage;

@property (nonatomic, strong) NSArray<MeatCartListModel *> *list;

@end


/*
 "shopName":"店铺1",
 "shopId":1,
 "arrearsIf":1,
 "invalidlist":Array[2],
 "validlist":Array[0]
 */

@interface MeatCartListModel : NSObject

@property (nonatomic, copy) NSString *shopName;
@property (nonatomic, strong) NSNumber *shopId;
@property (nonatomic, strong) NSNumber *arrearsIf;
@property (nonatomic, strong) NSArray<PigTypeItem *> *invalidlist;
@property (nonatomic, strong) NSArray<PigTypeItem *> *validlist;

/**
 是否被选
 */
@property (nonatomic, assign) BOOL isChicked;


@end

/*
 
 "unitPrice":0.01,
 "advanceSaleId":3,
 "aliasName":"前腿3",
 "varietiesName":"黑猪",
 "headImg":"http://39.98.179.212:8090/pigimg/r2.png",
 "goStatus":1,
 "oldPrice":11.32,
 "weight":0.7,
 "remark":null,
 "chunksName":"HT-05",
 "shoppingCartId":134,
 "pigNum":"A2222222225",
 "invalidIf":1,
 "positionName":"前腿",
 "nowPrice":0.01

 */

@interface MeatCartItem :NSObject

@property (nonatomic, strong) NSNumber *unitPrice;
@property (nonatomic, strong) NSNumber *advanceSaleId;

@property (nonatomic, copy) NSString *aliasName;
@property (nonatomic, copy) NSString *varietiesName;
@property (nonatomic, copy) NSString *headImg;


@property (nonatomic, strong) NSNumber *goStatus;
@property (nonatomic, strong) NSNumber *oldPrice;
@property (nonatomic, strong) NSNumber *weight;

@property (nonatomic, copy) NSString *remark;
@property (nonatomic, copy) NSString *chunksName;
@property (nonatomic, copy) NSString *positionName;


@property (nonatomic, strong) NSNumber *shoppingCartId;
@property (nonatomic, strong) NSNumber *invalidIf;
@property (nonatomic, strong) NSNumber *pigNum;
@property (nonatomic, strong) NSNumber *nowPrice;



@end

NS_ASSUME_NONNULL_END
